/* @Author Bassoe
 * 
 * HPQ MoonFlower, grows if seeded
*/

var total = 0;

function act() {
	if (rm.getReactor().getMap().getReactorByOid(9102001).getState() == rm.getState()) total++;
	if (rm.getReactor().getMap().getReactorByOid(9102000).getState() == rm.getState()) total++;
	if (rm.getReactor().getMap().getReactorByOid(9102003).getState() == rm.getState()) total++;
	if (rm.getReactor().getMap().getReactorByOid(9102004).getState() == rm.getState()) total++;
	if (rm.getReactor().getMap().getReactorByOid(9102005).getState() == rm.getState()) total++;
	if (rm.getReactor().getMap().getReactorByOid(9102006).getState() == rm.getState()) total++;
	if (rm.getReactor().getMap().getReactorByOid(9102007).getState() == rm.getState()) total++;
	if (total == 7) {
		rm.spawnReactor(9101000);
	}
}